<%@ include file="/taglibs.jsp"%>

<title><fmt:message key="subCategoryList.title"/></title>
<s:set name="list" value="subCategories" scope="request"/>
<br/>
<s:form name="listSubCategoryForm" action="getSubCategoryByCategory" method="post" validate="false">
	<s:select required="true" key="subCategory.category" name="cateId" cssStyle="max-width: 500px !important;" list="categories" listKey="id" onchange="form.submit()" listValue="categoryName" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select>
</s:form>
<display:table name="list" class="table" requestURI="" id="subcate" export="false" pagesize="10">
    <display:column property="name" href="editSubCategory.html" media="html" 
    paramId="id" paramProperty="id" sortable="true" titleKey="subCategory.name" escapeXml="true"/>
</display:table>

<script type="text/javascript">highlightTableRows("subcate");</script>

<button onclick="location.href='editSubCategory.html?cateId=${cateId}'" style="text-align: center;" >
	<fmt:message key="button.add.title"></fmt:message>
	<img src="${ctx}/images/btn_add.png" align="left" height="20" width="20">
</button>
